const jwt = require('jsonwebtoken');
module.exports = () => {
    return async (ctx,next) => {
        //路由白名单
        let writePath = ['/api/list'];

        if(writePath.includes(ctx.request.path)){
            await next();
        }else{

        }
    }
}

// jwt.sign({username:,psd},'lixd',过期时间)

// jwt.verify()